package com.defect.mapper;

import com.defect.po.Project;
import com.defect.po.ProjectExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ProjectMapper {

    /**
     * 查询所有项目信息
     * @return 返回所有项目信息对象的集合
     */
    List<Project> queryAllProjectByPage();

    /**
     * 查询所有项目信息 模糊查询
     * @return 返回所有项目信息对象的集合
     */
    List<Project> queryAllProjectByPageAndNameOrId(String projectName);

    /**
     * 新增的mapper
     * @param project
     * @return
     */
    int insertProject(Project project);

    /**
     * 修改项目mapper
     * @param project
     * @return
     */
    int updateProject(Project project);





    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    long countByExample(ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int deleteByExample(ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int deleteByPrimaryKey(String projectId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int insert(Project record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int insertSelective(Project record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    List<Project> selectByExampleWithBLOBs(ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    List<Project> selectByExample(ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    Project selectByPrimaryKey(String projectId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int updateByExampleSelective(@Param("record") Project record, @Param("example") ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int updateByExampleWithBLOBs(@Param("record") Project record, @Param("example") ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int updateByExample(@Param("record") Project record, @Param("example") ProjectExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int updateByPrimaryKeySelective(Project record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int updateByPrimaryKeyWithBLOBs(Project record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table info_issue_project
     *
     * @mbg.generated Sat Jul 25 17:47:29 CST 2020
     */
    int updateByPrimaryKey(Project record);
    List<Project> getAllProjects();
}